@import "../../styles/abstracts/variables.css";

.sidebar {
  display: inline-block;
  background-color: #fff;
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, .4);
  transition: width .3s ease-in-out 0s;
  z-index: 999;
}

.sidebar--float {
  composes: sidebar;
  width: calc(var(--sidebar-width) + 1px);
  position: relative;
  height: 100%;
  float: left;
}

.sidebar--dock {
  composes: sidebar;
  width: calc(var(--sidebar-width) + 1px);
  position: absolute;
  top: 0;
  bottom: 0;
}

.sidebar--pin {
  composes: sidebar;
  position: absolute;
  top: 20px;
  left: 100px;
  height:270px;
  transition: width .3s ease-in-out 0s, height .3s ease-in-out 0s;
}

.sidebar--show {
}

.sidebar--dock.sidebar--hidden,
.sidebar--float.sidebar--hidden {
  width: 0 !important;
}

.sidebar--pin.sidebar--hidden {
  height: 30px;
}

.gear {
  position: absolute;
  right: -14px;
  top: 50%;
  margin-top: -14px;
  padding-left: 2px;
  width: 14px;
  height: 28px;
  line-height: 28px;
  background: linear-gradient( 90deg, #c9c9c9, #aaaaaa );
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  cursor: pointer;
  transition: opacity .3s ease 0s;
}

.gear svg {
  fill: #fff;
  stroke: #fff;
  stroke-width: 0px;
}

.sidebar--pin .gear {
  display: none;
}

.sidebar--hidden .gear {
  opacity: .3;
}

.sidebar--hidden .gear:hover {
  opacity: 1;
}

.sidebar--hidden .gear svg {
  transform: rotateY(180deg);
}

.title {
  display: inline-block;
  padding: 0 10px;
  line-height: 30px;
  color: #fff;
  background-color: #3CA8F0;
  min-width: 80px;
  white-space: nowrap;
  transition: width .3s ease-in-out 0s;
  position: relative;

  i {
    position: absolute;
    right: 10px;
    line-height: 30px;
    margin-left: 10px;
    cursor: pointer;
  }
}

.content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
}

.sidebar--pin .content {
  top: 30px;
}

.sidebar--show .title {
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, .2);
}
